#pragma once

#include "Object/Object.h"
#include "EditorPanelView.m.h"

class REditorPanelViewModel;
class REditorAbilityViewModel;
class REditorAbilityView;
class RWidget;

//放在主窗口下方的控件
//用于输出各种信息
RCLASS(ExtraHeader="Ability/EditorAbilityView.h")
class REditorPanelView : public RObject
{
    ROBJECT

public:
    void BindViewModel(TSharedObjectPtr<REditorPanelViewModel> InViewModel);
    void FillWidget(TSharedObjectPtr<RWidget> InParentWidget);

    TDelegate<void> OnHidePanel;

protected:
    TWeakObjectPtr<REditorPanelViewModel> ViewModel;

    RFIELD()
    TVector<TSharedObjectPtr<REditorAbilityView>> PanelAbilitys;

};
